{%include file="index.header.tpl.php"%}
{%include file="index.left.tpl.php"%}
 <!--主要内容开始-->
  <div class="content-wrapper">
    <section class="content">
      <div class="row">
        <section class="col-lg-12 connectedSortable">
         <div class="box box-default box-solid">
                <div class="box-header with-border">
                    <span class="fa fa-table" style="float:left; font-size:18px; margin-top:2px; color:#3c8dbc;" ></span>
                    <p class="box-title">学生统计汇总表</p>
                </div>
                    <div class="box-body">
						<table class="table table-bordered">
							<tr>
								<td>年级名称</td>
								<td>班级名称</td>
								<td>班数</td>
								<td>男生数量</td>
								<td>女生数量</td>
								<td>总人数</td>
							</tr>
							{%foreach from=$grade_lists item=value%}
							<tr>
								<td>{%$value.grade_name%}</td>
								<td> </td>
								<td>{%$value.class_count%}</td>
								<td>{%$value.men_count%}</td>
								<td>{%$value.women_count%}</td>
								<td>{%$value.all%}</td>
							</tr>
							{%foreach from=$value.class_lists item=v%}
							<tr>
								<td>  </td>
								<td>{%$v.class_name%}</td>
								<td> </td>
								<td>{%$v.man%}</td>
								<td>{%$v.women%}</td>
								<td>{%$v.all%}</td>
							</tr>
							{%/foreach%}
							{%/foreach%}
							<tr>
								<td>全校人数</td>
								<td> </td>
								<td> </td>
								<td>{%$student_ment.count%}</td>
								<td>{%$student_woment.count%}</td>
								<td>{%$student_count.count%}</td>
							</tr>
						</table>
                        <!--<table class="table table-bordered">
                             <tr>
							    <td>年级名称</td>
								<td>班级名称</td>
								<td>班数</td>
								<td>男生数量</td>
								<td>女生数量</td>
								<td>总人数</td>
							 </tr>
							{%foreach from=$grade_lists key=key item=value%}
								<tr>
								<td>{%$value.grade_name%}</td>	
								<td>
									<table>
									{%foreach from=$value.class_lists key=k item=v%}
									<tr><td>
									{%$v.class_name%}	
									</td></tr>
									{%/foreach%}
									</table>	
								</td>
								<td>{%$value.class_count%}</td>	
								<td>{%$value.men_count%}</td>	
								<td>{%$value.women_count%}</td>	
								</tr>

								{%/foreach%}
                             <tr>
							    <td>全校人数</td>
								<td> </td>
								<td>{%$class_count.count%}</td>
								<td>{%$student_ment.count%}</td>
								<td>{%$student_woment.count%}</td>
								<td>{%$student_count.count%}</td>
							 </tr>
						 </table>-->
				    </div><!--box-body -->
             </div><!--box box-default box-solid-->
        </section>   
           
        </div><!--row-->
    </section>
 </div>
  <!--主要内容结束-->
{%include file="index.footer.tpl.php"%}
